#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
//    connect(ui->pushButton_2,SIGNAL(clicked()) , this,SLOT(on_connect_clicked()));
//    connect(ui->edit01 ,SIGNAL(textEdited(QString)) , ui->label01 ,SLOT(setText(QString)));
//    connect(ui->edit01 , SIGNAL(textEdited(QString)), ui->textBrowser ,SLOT(setText(QString)));
//    connect(ui->edit01 , SIGNAL(textEdited(QString)), this ,SLOT(print_write(QString)));
}

MainWindow::~MainWindow()
{
    delete ui;
}

//void MainWindow::on_pushButton_clicked()
//{
//    QMessageBox::information(this,tr("hello word") ,tr("good"));
//}

//void MainWindow::on_connect_clicked()
//{
//     QMessageBox::information(this,tr("槽按钮点击") ,tr(" helloWord "));
//}

//void MainWindow::print_write(const QString &str)
//{
//    qDebug()<<str;
//}
// 显示一个新的对话框
void MainWindow::on_pushButton_3_clicked()
{
    Dialog *dialog = new Dialog(this);
    dialog->show();
}

void MainWindow::on_pushButton_4_clicked()
{
    DotaWindow *dotaWindow = new DotaWindow(this);
    dotaWindow->show();
}

void MainWindow::on_pushButton_5_clicked()
{
    TableMain *table = new TableMain(this);
    table->show();
}
